.class public Lcom/TwinBlade/PicturePassword/SetupPIN;
.super Landroid/app/Activity;
.source "SourceFile"

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field a:Landroid/widget/EditText;

.field b:Landroid/widget/Button;

.field c:Landroid/widget/Button;

.field d:Landroid/widget/Button;

.field e:Landroid/widget/Button;

.field f:Landroid/widget/Button;

.field g:Landroid/widget/Button;

.field h:Landroid/widget/Button;

.field i:Landroid/widget/Button;

.field j:Landroid/widget/Button;

.field k:Landroid/widget/Button;

.field l:Landroid/widget/Button;

.field m:Landroid/widget/Button;

.field n:Landroid/widget/Button;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 13
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5
    .parameter

    .prologue
    const/4 v4, 0x3

    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 59
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->a:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "0000"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 60
    const v0, 0x7f0900c4

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v4, v3}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    .line 61
    invoke-virtual {p0, v2}, Lcom/TwinBlade/PicturePassword/SetupPIN;->setResult(I)V

    .line 74
    :goto_0
    return-void

    .line 63
    :cond_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->a:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 64
    const v0, 0x7f0900c3

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v4, v3}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    .line 65
    invoke-virtual {p0, v2}, Lcom/TwinBlade/PicturePassword/SetupPIN;->setResult(I)V

    goto :goto_0

    .line 69
    :cond_1
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 70
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "BackupPin"

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->a:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-interface {v2}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 72
    const/4 v0, -0x1

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->setResult(I)V

    .line 73
    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->finish()V

    goto :goto_0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 3
    .parameter

    .prologue
    const/16 v2, 0x8

    .line 20
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 21
    const v0, 0x7f030007

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->setContentView(I)V

    .line 23
    const v0, 0x7f080026

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->b:Landroid/widget/Button;

    .line 24
    const v0, 0x7f080024

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->c:Landroid/widget/Button;

    .line 25
    const v0, 0x7f080016

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->d:Landroid/widget/Button;

    .line 26
    const v0, 0x7f08001b

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->e:Landroid/widget/Button;

    .line 27
    const v0, 0x7f08001c

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->f:Landroid/widget/Button;

    .line 28
    const v0, 0x7f08001d

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->g:Landroid/widget/Button;

    .line 29
    const v0, 0x7f08001e

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->h:Landroid/widget/Button;

    .line 30
    const v0, 0x7f08001f

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->i:Landroid/widget/Button;

    .line 31
    const v0, 0x7f080020

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->j:Landroid/widget/Button;

    .line 32
    const v0, 0x7f080021

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->k:Landroid/widget/Button;

    .line 33
    const v0, 0x7f080022

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->l:Landroid/widget/Button;

    .line 34
    const v0, 0x7f080023

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->m:Landroid/widget/Button;

    .line 35
    const v0, 0x7f080025

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->n:Landroid/widget/Button;

    .line 36
    const v0, 0x7f08001a

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/SetupPIN;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->a:Landroid/widget/EditText;

    .line 37
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->a:Landroid/widget/EditText;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setInputType(I)V

    .line 39
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->a:Landroid/widget/EditText;

    const v1, 0x7f090096

    invoke-virtual {p0, v1}, Lcom/TwinBlade/PicturePassword/SetupPIN;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    .line 41
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->b:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 43
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->c:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 44
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->d:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 45
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->e:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 46
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->f:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 47
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->g:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 48
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->h:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 49
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->i:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 50
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->j:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 51
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->k:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 52
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->l:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 53
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->m:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 54
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/SetupPIN;->n:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 55
    return-void
.end method
